import {
  getToken,
  getUserName,
} from '@/utils/cookies';

export interface UserState {
  roles: string[],
  token: string,
  name: string,
}

export const state: UserState = {
  roles: [],
  token: getToken() || '',
  name: getUserName() || '',
};
